package com.inctech.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.inctech.dao.IOrganizationDao;
import com.inctech.model.Organization;
import com.inctech.service.IOrganizationService;

@Service("organizationService")
public class OrganizationServiceImpl implements IOrganizationService {

	@Autowired
	private IOrganizationDao organizationDao;
	
	@Override
	public List<String> getAllDepartment() {
		return organizationDao.getAllDepartment();
	}

	@Override
	public List<Organization> getAllOrganization() {
		return organizationDao.getAllOrganization();
	}

	@Override
	public int addDepartment(Organization org) {
		return organizationDao.addDepartment(org);
	}

	@Override
	public int updateDepartment(String pre_department,String now_department) {
		return organizationDao.updateDepartment(pre_department,now_department);
	}

	@Override
	public int addPosition(Organization org) {
		return organizationDao.addPosition(org);
	}

	@Override
	public int updatePosition(Map<String,Object> paramMap) {
		return organizationDao.updatePosition(paramMap);
	}

}
